package top.yxqz.number3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: 余小小
 * @description：员工实体类 TableName 表名字
 * @TableId:主键
 * @Data:Lombok中的 get|Set
 * @NoArgsConstructor:无参构造
 * @AllArgsConstructor：有参构造
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_ssm_emp")
public class Emp {

    //    设置主键自动递增
    @TableId(type = IdType.AUTO)
    @TableField(value = "emp_id")
    private Integer empId;
    @TableField("emp_name")
    private String empName;
    private Integer age;
    private String sex;
    private String email;

}
